//
//  M4ContactInputView.swift
//  M4
//
//  Created by YuChuang on 2024/8/10.
//

import UIKit

class M4ContactInputView: UIView {
    
    @IBOutlet weak var M4ContactItemTitle: UILabel!
    
    @IBOutlet weak var M4ContactItemBGView: UIView!
    
    @IBOutlet weak var M4ContactItemNameTF: UITextField!
    
    @IBOutlet weak var M4ContactItemMobileTF: UITextField!
    
    @IBOutlet weak var M4ContactItemButton: UIButton!
    
    
    
    
    @IBOutlet weak var deletBnt: UIButton!
    
    
    @IBOutlet weak var iccuotaTip: UIImageView!
    
    @IBOutlet weak var peopleTopH: NSLayoutConstraint!
    
    @IBOutlet weak var BGView1: UIView!
    
    @IBOutlet weak var BGView2: UIView!
    var didTapDeletHandle: (() -> Void)? = nil

    
    override func awakeFromNib() {
        BGView1.layer.cornerRadius = 2
        BGView1.layer.borderColor = COLOR_CCCCCC.cgColor
        BGView1.layer.borderWidth = 0.5
        BGView1.layer.masksToBounds = true
        
        
        BGView2.layer.cornerRadius = 2
        BGView2.layer.borderColor = COLOR_CCCCCC.cgColor
        BGView2.layer.borderWidth = 0.5
        BGView2.layer.masksToBounds = true
        let attributes = [NSAttributedString.Key.font: UIFont.systemFont(ofSize: 14), .foregroundColor: COLOR_999999]
        M4ContactItemNameTF.attributedPlaceholder = NSAttributedString(string: "Por favor seleccione", attributes: attributes)
        M4ContactItemMobileTF.keyboardType = .numberPad
        
        
        let attributes1 = [NSAttributedString.Key.font: UIFont.systemFont(ofSize: 14), .foregroundColor: COLOR_999999]
        M4ContactItemMobileTF.attributedPlaceholder = NSAttributedString(string: "Por favor seleccione", attributes: attributes)
    }

    @IBAction func pressDletbtn(_ sender: Any) {
        
        didTapDeletHandle?()
    }
}
